package com.thirtydays.oral.common.service;

import cn.hutool.json.JSONObject;
import java.sql.Connection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author Dell
 * @version 1.0
 * @date 2021/9/24 14:56
 */
@Service
@Profile({"test"})
public class DBServiceTestImpl implements DBService {
    private static final Logger log = LoggerFactory.getLogger(DBServiceTestImpl.class);

    public DBServiceTestImpl() {
    }

    @Override
    public void insert(Connection connection, JSONObject parseObj) {
        log.info("开始处理新增消息：{}", parseObj);
    }

    @Override
    public void update(Connection connection, JSONObject parseObj) {
        log.info("开始处理修改消息：{}", parseObj);
    }

    @Override
    public void delete(Connection connection, JSONObject parseObj) {
        log.info("开始处理删除消息：{}", parseObj);
    }
}

